﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;

namespace EasyMvvm.Services
{
    public class DialogService : IDialogService
    {
        public void ShowMessageBox(string text, string title, MessageBoxButton button, MessageBoxImage image, Action<MessageBoxResult> callback)
        {
            callback.Invoke(MessageBox.Show(text, title, button, image));
        }

        public void ShowMessageBox(string text, string title, MessageBoxImage image)
        {
            MessageBox.Show(title, text, MessageBoxButton.OK, image);
        }
    }
}
